<template>
  <div class="footer">
    <div>
      <div class="footerCenter">
        <div class="footerCenterLeft">
          <img
            :src="`/img/WechatIMG449.jpeg`"
            class="navbar-brand-footer"
            alt="logo"
          />
          <p>扫码关注公众号</p>
        </div>
        <div class="footerCenterRight">
          <p>公司地址：北京市海淀区阜成路甲28号（新知大厦）</p>
          <p>联系电话：400-011-8789</p>
        </div>
      </div>
      <div class="footer-bottom">
        <ul :class="{ footerList: true }">
          <template v-for="(item, index) in menuData">
            <router-link :key="index" :to="item.to">{{
              item.title
            }}</router-link>
          </template>
        </ul>
        <p>
          © 2021 公司名称 中龄健康管理（北京）有限公司. 版权所有 京公网安备
          11010802031913号 京ICP备20014561号
        </p>
      </div>
    </div>
  </div>
</template>

<script>
import menuData from "./menu";
export default {
  data() {
    return {
      menuData,
    };
  },
};
</script>

<style scoped lang="scss">
.footer {
  color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("/img/bbb.png");
  height: 360px;
  > div {
    width: 1000px;
    margin: 0 auto;
    padding: 65px 0 0 0;
  }
}
.footerList {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 30px;
  line-height: 30px;
  a {
    color: #ffffff;
    font-size: 14px;
    display: block;
    margin: 0 42px;
    float: left;
  }
}
.footerCenter {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  .footerCenterLeft {
    padding-right: 140px;
    width: 160px;
    position: relative;
    left: -30px;
    p {
      font-size: 12px;
      font-weight: 400;
      color: #ffffff;
      line-height: 25px;
    }
  }
  .footerCenterRight {
    border-left: 1px solid #cccccc;
    padding-left: 30px;
    line-height: 1.8em;
    height: 50px;
    text-align: left;
    p {
      font-size: 12px;
      font-weight: 400;
      color: #ffffff;
      position: relative;
      top: -3px;
    }
  }
}
.footer-bottom p {
  padding-top: 40px;
  font-size: 12px;
}
.navbar-brand-footer {
  height: 88px;
  width: 88px;
  margin-bottom: 10px;
  border-radius: 10px;
}
</style>
